<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TTextSelector类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_text_selector-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TTextSelector类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TTextSelector 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_text_selector.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa4a460d0769f78bb9a7268bcca43e96c"><td class="memItemLeft" align="right" valign="top"><a id="aa4a460d0769f78bb9a7268bcca43e96c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TTextSelector</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aa4a460d0769f78bb9a7268bcca43e96c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c6c8d09494d4f858041c16992a0613"><td class="memItemLeft" align="right" valign="top"><a id="aa5c6c8d09494d4f858041c16992a0613"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TTextSelector</b> (const text_selector_t *nativeObj)</td></tr>
<tr class="separator:aa5c6c8d09494d4f858041c16992a0613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a057ed0caeeca7dfce136e5780f9f2e86"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a057ed0caeeca7dfce136e5780f9f2e86">ResetOptions</a> ()</td></tr>
<tr class="separator:a057ed0caeeca7dfce136e5780f9f2e86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6080cb8daed0285d0541e3a18a46a114"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a6080cb8daed0285d0541e3a18a46a114">CountOptions</a> ()</td></tr>
<tr class="separator:a6080cb8daed0285d0541e3a18a46a114"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3acea66ef67e86a2dd922b9501ba9382"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a3acea66ef67e86a2dd922b9501ba9382">AppendOption</a> (int32_t value, const char *text)</td></tr>
<tr class="separator:a3acea66ef67e86a2dd922b9501ba9382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a672ec7846fc403121ab60dd48e46641e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a672ec7846fc403121ab60dd48e46641e">SetOptions</a> (const char *options)</td></tr>
<tr class="separator:a672ec7846fc403121ab60dd48e46641e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0490ec4c0825c1a09f5c52ef5ad97090"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a0490ec4c0825c1a09f5c52ef5ad97090">SetRangeOptionsEx</a> (int32_t start, uint32_t nr, int32_t step, const char *format)</td></tr>
<tr class="separator:a0490ec4c0825c1a09f5c52ef5ad97090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef058ef2df93318278e6d432b9a6ce85"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#aef058ef2df93318278e6d432b9a6ce85">SetRangeOptions</a> (int32_t start, uint32_t nr, int32_t step)</td></tr>
<tr class="separator:aef058ef2df93318278e6d432b9a6ce85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34fba8d90ff8f13faa776a107653aa32"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a34fba8d90ff8f13faa776a107653aa32">GetValueInt</a> ()</td></tr>
<tr class="separator:a34fba8d90ff8f13faa776a107653aa32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af963d5eb74e6874c63824b72d0c102a9"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#af963d5eb74e6874c63824b72d0c102a9">SetValue</a> (int32_t value)</td></tr>
<tr class="separator:af963d5eb74e6874c63824b72d0c102a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7d358fb26c98481384c8791f8b06e73"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#aa7d358fb26c98481384c8791f8b06e73">GetTextValue</a> ()</td></tr>
<tr class="separator:aa7d358fb26c98481384c8791f8b06e73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5af357ffa055314f08112b437c4a6d5"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#ab5af357ffa055314f08112b437c4a6d5">SetText</a> (const char *text)</td></tr>
<tr class="separator:ab5af357ffa055314f08112b437c4a6d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d565096f7b9af1fb572fc0bd8d81cb"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a57d565096f7b9af1fb572fc0bd8d81cb">SetSelectedIndex</a> (uint32_t index)</td></tr>
<tr class="separator:a57d565096f7b9af1fb572fc0bd8d81cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cf69530893a71087e99230595afe7dc"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a5cf69530893a71087e99230595afe7dc">SetVisibleNr</a> (uint32_t visible_nr)</td></tr>
<tr class="separator:a5cf69530893a71087e99230595afe7dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a447d4587a1299a0010b5ee5d6c204e7f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a447d4587a1299a0010b5ee5d6c204e7f">SetLocalizeOptions</a> (bool localize_options)</td></tr>
<tr class="separator:a447d4587a1299a0010b5ee5d6c204e7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23cc78c449ba19737bc68dd6bec9fd73"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a23cc78c449ba19737bc68dd6bec9fd73">SetLoopOptions</a> (bool loop_options)</td></tr>
<tr class="separator:a23cc78c449ba19737bc68dd6bec9fd73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22dfed368902b877aa1d93b6762bf097"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a22dfed368902b877aa1d93b6762bf097">SetYspeedScale</a> (float_t yspeed_scale)</td></tr>
<tr class="separator:a22dfed368902b877aa1d93b6762bf097"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ff3912ae75773e7b2b0213a68391e9b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a8ff3912ae75773e7b2b0213a68391e9b">SetAnimatingTime</a> (uint32_t animating_time)</td></tr>
<tr class="separator:a8ff3912ae75773e7b2b0213a68391e9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a9db78e2e02e6db701f33c96c25298f"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a1a9db78e2e02e6db701f33c96c25298f">SetEnableValueAnimator</a> (bool enable_value_animator)</td></tr>
<tr class="separator:a1a9db78e2e02e6db701f33c96c25298f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7efafac50111e23bc0a8820fc8f33cb0"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a7efafac50111e23bc0a8820fc8f33cb0">SetMaskEasing</a> (easing_type_t mask_easing)</td></tr>
<tr class="separator:a7efafac50111e23bc0a8820fc8f33cb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a904ad0208c1cba4b9cb4fdc9a66aab2e"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a904ad0208c1cba4b9cb4fdc9a66aab2e">SetMaskAreaScale</a> (float_t mask_area_scale)</td></tr>
<tr class="separator:a904ad0208c1cba4b9cb4fdc9a66aab2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a654b0d478368792febd784133b07c176"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a654b0d478368792febd784133b07c176">GetVisibleNr</a> () const</td></tr>
<tr class="separator:a654b0d478368792febd784133b07c176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fe7e7c0e699fa1e40b45ef5173fa1d9"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a0fe7e7c0e699fa1e40b45ef5173fa1d9">GetSelectedIndex</a> () const</td></tr>
<tr class="separator:a0fe7e7c0e699fa1e40b45ef5173fa1d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a626f8c36ab1700135392ce636e463f08"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a626f8c36ab1700135392ce636e463f08">GetOptions</a> () const</td></tr>
<tr class="separator:a626f8c36ab1700135392ce636e463f08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6479d5c8e6194319a804f4a2984ecef0"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a6479d5c8e6194319a804f4a2984ecef0">GetYspeedScale</a> () const</td></tr>
<tr class="separator:a6479d5c8e6194319a804f4a2984ecef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aded6721fbb596b5adf52f6889d018842"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#aded6721fbb596b5adf52f6889d018842">GetAnimatingTime</a> () const</td></tr>
<tr class="separator:aded6721fbb596b5adf52f6889d018842"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9e0598999adffca72281014721d70d0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#aa9e0598999adffca72281014721d70d0">GetLocalizeOptions</a> () const</td></tr>
<tr class="separator:aa9e0598999adffca72281014721d70d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ff0457591c7187c2716179ee0e61692"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a3ff0457591c7187c2716179ee0e61692">GetLoopOptions</a> () const</td></tr>
<tr class="separator:a3ff0457591c7187c2716179ee0e61692"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad2636edeba4642a62b6ee6d7c08a7f9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#aad2636edeba4642a62b6ee6d7c08a7f9">GetEnableValueAnimator</a> () const</td></tr>
<tr class="separator:aad2636edeba4642a62b6ee6d7c08a7f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cb515df442020de255713465b893bee"><td class="memItemLeft" align="right" valign="top">easing_type_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a6cb515df442020de255713465b893bee">GetMaskEasing</a> () const</td></tr>
<tr class="separator:a6cb515df442020de255713465b893bee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af94c919aa03b91e920d91d8c71897940"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#af94c919aa03b91e920d91d8c71897940">GetMaskAreaScale</a> () const</td></tr>
<tr class="separator:af94c919aa03b91e920d91d8c71897940"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a29f41730fb65b868d5e8b5b5c3b896cc"><td class="memItemLeft" align="right" valign="top"><a id="a29f41730fb65b868d5e8b5b5c3b896cc"></a>
static <a class="el" href="class_t_text_selector.html">TTextSelector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a29f41730fb65b868d5e8b5b5c3b896cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e0074cd1681de2a7b4ad9862e6665cb"><td class="memItemLeft" align="right" valign="top"><a id="a5e0074cd1681de2a7b4ad9862e6665cb"></a>
static <a class="el" href="class_t_text_selector.html">TTextSelector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a5e0074cd1681de2a7b4ad9862e6665cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cbb34fbcffd3d3fd7e829b558544364"><td class="memItemLeft" align="right" valign="top"><a id="a7cbb34fbcffd3d3fd7e829b558544364"></a>
static <a class="el" href="class_t_text_selector.html">TTextSelector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a7cbb34fbcffd3d3fd7e829b558544364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1c34ccd92bc2189a00fa4906a4c79cd"><td class="memItemLeft" align="right" valign="top"><a id="ae1c34ccd92bc2189a00fa4906a4c79cd"></a>
static <a class="el" href="class_t_text_selector.html">TTextSelector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:ae1c34ccd92bc2189a00fa4906a4c79cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99d741bf295493b353636bd7b5282caa"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_text_selector.html#a99d741bf295493b353636bd7b5282caa">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a99d741bf295493b353636bd7b5282caa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>文本选择器控件，通常用于选择日期和时间等。</p>
<blockquote class="doxtable">
<p>XXX: 目前需要先设置options和visible_nr，再设置其它参数(在XML中也需要按此顺序)。 </p>
</blockquote>
<p>text_selector_t是widget\_t的子类控件，widget_t的函数均适用于text_selector_t控件。</p>
<p>在xml中使用"text\_selector"标签创建文本选择器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">text_selector</span> <span class="keyword">options</span>=<span class="stringliteral">&quot;red;green;blue;gold;orange&quot;</span> <span class="keyword">visible_nr</span>=<span class="stringliteral">&quot;3&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;red&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/ui/text_selector.xml">text_selector.xml</a></p>
<p>在c代码中使用函数text_selector_create创建文本选择器控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk-c-demos/blob/master/demos/text_selector.c">text_selector demo</a></p>
<p>可用通过style来设置控件的显示风格，如字体和背景颜色等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;dark&quot;</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>  <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> <span class="keyword">text_align_h</span>=<span class="stringliteral">&quot;center&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#ffffff&quot;</span> <span class="keyword">mask_color</span>=<span class="stringliteral">&quot;#404040&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#404040&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/styles/default.xml#L443">theme default</a> </p>
</blockquote>
</blockquote>
</blockquote>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a3acea66ef67e86a2dd922b9501ba9382"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3acea66ef67e86a2dd922b9501ba9382">&#9670;&nbsp;</a></span>AppendOption()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::AppendOption </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>追加一个选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。 </td></tr>
    <tr><td class="paramname">text</td><td>文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6080cb8daed0285d0541e3a18a46a114"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6080cb8daed0285d0541e3a18a46a114">&#9670;&nbsp;</a></span>CountOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TTextSelector::CountOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取选项个数。</p>
<dl class="section return"><dt>返回</dt><dd>返回选项个数。 </dd></dl>

</div>
</div>
<a id="a99d741bf295493b353636bd7b5282caa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99d741bf295493b353636bd7b5282caa">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TTextSelector::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建text_selector对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aded6721fbb596b5adf52f6889d018842"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aded6721fbb596b5adf52f6889d018842">&#9670;&nbsp;</a></span>GetAnimatingTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TTextSelector::GetAnimatingTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>滚动动画播放时间。(单位毫秒) </p>

</div>
</div>
<a id="aad2636edeba4642a62b6ee6d7c08a7f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad2636edeba4642a62b6ee6d7c08a7f9">&#9670;&nbsp;</a></span>GetEnableValueAnimator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TTextSelector::GetEnableValueAnimator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否修改值时启用动画。 </p>

</div>
</div>
<a id="aa9e0598999adffca72281014721d70d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9e0598999adffca72281014721d70d0">&#9670;&nbsp;</a></span>GetLocalizeOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TTextSelector::GetLocalizeOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否本地化(翻译)选项(缺省为FALSE)。 </p>

</div>
</div>
<a id="a3ff0457591c7187c2716179ee0e61692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ff0457591c7187c2716179ee0e61692">&#9670;&nbsp;</a></span>GetLoopOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TTextSelector::GetLoopOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否循环选项(缺省为FALSE)。 </p>

</div>
</div>
<a id="af94c919aa03b91e920d91d8c71897940"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af94c919aa03b91e920d91d8c71897940">&#9670;&nbsp;</a></span>GetMaskAreaScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TTextSelector::GetMaskAreaScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>绘制蒙版的区域占比（范围0~1）。 </p>

</div>
</div>
<a id="a6cb515df442020de255713465b893bee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cb515df442020de255713465b893bee">&#9670;&nbsp;</a></span>GetMaskEasing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">easing_type_t TTextSelector::GetMaskEasing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>绘制蒙版的变化趋势。 </p>

</div>
</div>
<a id="a626f8c36ab1700135392ce636e463f08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a626f8c36ab1700135392ce636e463f08">&#9670;&nbsp;</a></span>GetOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TTextSelector::GetOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置可选项(英文冒号(:)分隔值和文本，英文分号(;)分隔选项，如:1:red;2:green;3:blue)。 对于数值选项，也可以指定一个范围，用英文负号(-)分隔起始值、结束值和格式。 如："1-7-%02d"表示1到7，格式为『02d』，格式为可选，缺省为『d』。 </p><blockquote class="doxtable">
<p>如果数据本身中有英文冒号(:)、英文分号(;)和英文负号(-)。请用16进制转义。</p><ul>
<li>英文冒号(:)写为\x3a</li>
<li>英文冒号(;)写为\x3b</li>
<li>英文冒号(-)写为\x2d </li>
</ul>
</blockquote>

</div>
</div>
<a id="a0fe7e7c0e699fa1e40b45ef5173fa1d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0fe7e7c0e699fa1e40b45ef5173fa1d9">&#9670;&nbsp;</a></span>GetSelectedIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TTextSelector::GetSelectedIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>当前选中的选项。 </p>

</div>
</div>
<a id="aa7d358fb26c98481384c8791f8b06e73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7d358fb26c98481384c8791f8b06e73">&#9670;&nbsp;</a></span>GetTextValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TTextSelector::GetTextValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取text_selector的文本。</p>
<dl class="section return"><dt>返回</dt><dd>返回文本。 </dd></dl>

</div>
</div>
<a id="a34fba8d90ff8f13faa776a107653aa32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34fba8d90ff8f13faa776a107653aa32">&#9670;&nbsp;</a></span>GetValueInt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TTextSelector::GetValueInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取text_selector的值。</p>
<dl class="section return"><dt>返回</dt><dd>返回值。 </dd></dl>

</div>
</div>
<a id="a654b0d478368792febd784133b07c176"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a654b0d478368792febd784133b07c176">&#9670;&nbsp;</a></span>GetVisibleNr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TTextSelector::GetVisibleNr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>可见的选项数量(只能是1或者3或者5，缺省为5)。 </p>

</div>
</div>
<a id="a6479d5c8e6194319a804f4a2984ecef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6479d5c8e6194319a804f4a2984ecef0">&#9670;&nbsp;</a></span>GetYspeedScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TTextSelector::GetYspeedScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>y偏移速度比例。 </p>

</div>
</div>
<a id="a057ed0caeeca7dfce136e5780f9f2e86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a057ed0caeeca7dfce136e5780f9f2e86">&#9670;&nbsp;</a></span>ResetOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::ResetOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>重置所有选项。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8ff3912ae75773e7b2b0213a68391e9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ff3912ae75773e7b2b0213a68391e9b">&#9670;&nbsp;</a></span>SetAnimatingTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetAnimatingTime </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>animating_time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置滚动动画播放时间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">animating_time</td><td>滚动动画播放时间。(单位毫秒)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1a9db78e2e02e6db701f33c96c25298f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a9db78e2e02e6db701f33c96c25298f">&#9670;&nbsp;</a></span>SetEnableValueAnimator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetEnableValueAnimator </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable_value_animator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否修改值时启用动画。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable_value_animator</td><td>是否修改值时启用动画</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a447d4587a1299a0010b5ee5d6c204e7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a447d4587a1299a0010b5ee5d6c204e7f">&#9670;&nbsp;</a></span>SetLocalizeOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetLocalizeOptions </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>localize_options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否本地化(翻译)选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">localize_options</td><td>是否本地化(翻译)选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a23cc78c449ba19737bc68dd6bec9fd73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23cc78c449ba19737bc68dd6bec9fd73">&#9670;&nbsp;</a></span>SetLoopOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetLoopOptions </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>loop_options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置是否循环选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop_options</td><td>是否循环选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a904ad0208c1cba4b9cb4fdc9a66aab2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a904ad0208c1cba4b9cb4fdc9a66aab2e">&#9670;&nbsp;</a></span>SetMaskAreaScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetMaskAreaScale </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>mask_area_scale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置绘制蒙版的区域占比（范围0~1）。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mask_area_scale</td><td>绘制蒙版的区域占比（范围0~1）。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7efafac50111e23bc0a8820fc8f33cb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7efafac50111e23bc0a8820fc8f33cb0">&#9670;&nbsp;</a></span>SetMaskEasing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetMaskEasing </td>
          <td>(</td>
          <td class="paramtype">easing_type_t&#160;</td>
          <td class="paramname"><em>mask_easing</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置绘制蒙版的变化趋势。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">mask_easing</td><td>绘制蒙版的变化趋势。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a672ec7846fc403121ab60dd48e46641e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a672ec7846fc403121ab60dd48e46641e">&#9670;&nbsp;</a></span>SetOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetOptions </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td>选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aef058ef2df93318278e6d432b9a6ce85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef058ef2df93318278e6d432b9a6ce85">&#9670;&nbsp;</a></span>SetRangeOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetRangeOptions </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>step</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置一系列的整数选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>起始值。 </td></tr>
    <tr><td class="paramname">nr</td><td>个数。 </td></tr>
    <tr><td class="paramname">step</td><td>步长。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0490ec4c0825c1a09f5c52ef5ad97090"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0490ec4c0825c1a09f5c52ef5ad97090">&#9670;&nbsp;</a></span>SetRangeOptionsEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetRangeOptionsEx </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>step</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置一系列的整数选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>起始值。 </td></tr>
    <tr><td class="paramname">nr</td><td>个数。 </td></tr>
    <tr><td class="paramname">step</td><td>步长。 </td></tr>
    <tr><td class="paramname">format</td><td>选项的格式化。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a57d565096f7b9af1fb572fc0bd8d81cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57d565096f7b9af1fb572fc0bd8d81cb">&#9670;&nbsp;</a></span>SetSelectedIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetSelectedIndex </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置第index个选项为当前选中的选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>选项的索引。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab5af357ffa055314f08112b437c4a6d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5af357ffa055314f08112b437c4a6d5">&#9670;&nbsp;</a></span>SetText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetText </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置text_selector的文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af963d5eb74e6874c63824b72d0c102a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af963d5eb74e6874c63824b72d0c102a9">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetValue </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置text_selector的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5cf69530893a71087e99230595afe7dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cf69530893a71087e99230595afe7dc">&#9670;&nbsp;</a></span>SetVisibleNr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetVisibleNr </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>visible_nr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置可见的选项数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">visible_nr</td><td>选项数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a22dfed368902b877aa1d93b6762bf097"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22dfed368902b877aa1d93b6762bf097">&#9670;&nbsp;</a></span>SetYspeedScale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TTextSelector::SetYspeedScale </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>yspeed_scale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置Y轴偏移速度比例。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">yspeed_scale</td><td>y偏移速度比例。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
